package day03;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo07 {

	public static void main(String[] args) throws Exception {

		
		String pattern="yyyyMMdd";
		SimpleDateFormat sdf=new SimpleDateFormat(pattern);
		String NUM="127548199103112123";
		String s=NUM.substring(6,6+8);
		Date date=sdf.parse(s);
		System.out.println(date);
		
		
		
//		long ll=date.getTime();
//		System.out.println(date);
		String ss=sdf.format(date);
		System.out.println(ss);
		
	}

}
